<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>特殊情况汇总</title>
	<%@ include file="/pages/common/head_base.jsp"%>
	<script type="text/javascript">
		$(function () {
			$("a.deleteClass").click(function () {
				return confirm("你确定要删除学号为" + $(this).parent().parent().find("td:first").text() + "的学生吗?");
			})
		})
	</script>


</head>
<body>
	
	<div id="header">
			<span class="wel_word">特殊情况汇总</span>
		<%@ include file="/pages/common/manager_menu.jsp"%>
	</div>
	
	<div id="main">

		<table>
			<tr>
				<td>学号</td>
				<td>类型</td>
				<td>原因</td>
				<td colspan="2">操作</td>
			</tr>

			<c:forEach items="${requestScope.List}" var="element">
				<tr>
					<td>${element.sno}</td>
					<td>${element.type}</td>
					<td>${element.situation}</td>
					<td><a class="deleteClass" href="special_situationServlet?action=delete&sno=${element.sno}">删除</a></td>
				</tr>
			</c:forEach>

			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td><a href="pages/manager/special_edit.jsp">异常管理</a></td>
			</tr>
		</table>
	</div>
	<%@ include file="/pages/common/footer.jsp"%>
</body>
</html>